<section ng-controller="PasswordController">
	<h1 class="page-header">Thay đổi mật khẩu</h1>
	<div class="alert fadeInDown animated" ng-class="{'alert-danger': !status, 'alert-success': status}" role="alert" ng-show="msg!=''">
		<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true" ng-show="!status"></span>
		<span class="glyphicon glyphicon-ok" aria-hidden="true" ng-show="status"></span>
		{{msg}}
	</div>
	<div class="col-xs-6 col-md-3 mg-b2">
		<form ng-submit="changeForm.$valid && changePassword()" name="changeForm" >
			<div class="form-group">
				<label for="exampleInputEmail1">Mật khẩu cũ</label>
				<input type="password" class="form-control" id="exampleInputEmail1" ng-trim="true" required name="oldPassword" ng-model="oldPassword">
			</div>
			<div class="form-group">
				<label for="exampleInputPassword1">Mật khẩu mới</label>
				<input type="password" class="form-control" id="exampleInputPassword1" ng-trim="true" required name="newPassword" ng-model="newPassword">
			</div>
			<div class="form-group">
				<label for="exampleInputPassword1">Xác nhận mật khẩu mới</label>
				<input type="password" class="form-control" id="exampleInputPassword1" ng-trim="true" required name="reNewPassword" ng-model="reNewPassword">
			</div>
			<div class="form-group">
				<button type="submit" class="btn btn-primary" ng-disabled="changeForm.$invalid">Lưu thay đổi</button>
			</div>
		</form>
	</div>
</section>